if (LEFT(ADDRESS(), 6) ~= "GOLDED") then /* not started by GoldEd ? */
address 'GOLDED.1'
'LOCK CURRENT' /* lock GUI, gain access */
OPTIONS FAILAT 6 /* ignore warnings */
SIGNAL ON SYNTAX /* ensure clean exit */
/* ------------------------ INSERT YOUR CODE HERE: ------------------- */
'REQUEST BODY="A new API client has been installed.|Do you want to have this client added|to the list of active clients ?" BUTTON="_START NEW CLIENT|no"'
if (RESULT = 1) then do
'API ADD="GOLDED:API/DebugIT/DebugIT"'
'REQUEST HIDE=FALSE BODY="GoldED''s preferences have been changed.|Save new configuration ?" BUTTON="_SAVE|no"'
if (RESULT = 1) then
'PREFS SAVE'
end
/* ---------------------------- END OF YOUR CODE --------------------- */
'UNLOCK' /* VERY important: unlock GUI */
EXIT
SYNTAX:
SAY "Sorry, error line" SIGL ":" ERRORTEXT(RC) ":-("